package com.test.repository;

import com.test.entity.Order;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created by lichangbin@xwbank.com on 2018/7/2
 */
@Mapper
public interface OrderRepository {

  Order findByOrderNumber(String orderNumber);

  List<Order> findByUserId(Long userId);

  int insert(Order... orders);

  int deleteAll();

}
